package com.example.vueblog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.example.vueblog.annotation.ExcelField;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author yushunshun
 * @since 2022-07-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("m_logs")
@ApiModel("日志类")
public class Logs implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelField("日志id")
    @TableId(value = "oper_Id",type = IdType.AUTO)
    private Integer operId;

    /**
     * 操作模块
     */
    @ExcelField(value = "标题",sort = 5)
    private String title;

    /**
     * 业务类型(0=其它,1=新增,2=修改,3=删除,4=授权,5=导出,6=导入,7=强退,8=生成代码,9=清空数据)
     */
    @ExcelField("业务类型")
    private Integer businessType;

    /**
     * 方法名称
     */
    @ExcelField("方法名称")
    private String method;

    /**
     * 请求参数
     */
    @ExcelField("请求参数")
    private String requestMethod;

    /**
     * 操作人
     */
    @ExcelField("操作人")
    private String operName;

    /**
     * 请求url
     */
//    @ExcelField("请求url")
    private String operUrl;

    /**
     * 请求参数
     */
    @ExcelField("请求参数")
    private String operParam;

    /**
     * 操作状态(0=正常,1=异常)
     */
    @ExcelField("操作状态")
    private Integer status;

    /**
     * 操作时间
     */
    @ExcelField("操作时间")
    private LocalDateTime operTime;


}
